package com.okami;

import com.alibaba.fastjson.JSON;
import com.okami.entity.Apple;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

import java.util.Date;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2020-06-30 15:01
 **/
@SpringBootTest
public class SimpleWrite {
    @Autowired
    private WebSecurityConfigurerAdapter webSecurityConfigurerAdapter;

    public static void main(String[] args) {
        Apple apple = new Apple();
        apple.setCreateTime(new Date());

        System.out.println(JSON.toJSONString(apple));
    }


    @Test
    public void simpleWrite() {
        System.out.println(webSecurityConfigurerAdapter);
    }

}
